CXX = g++
CXXFLAGS = -Wall -g -I../../src/eigen-3.4.0 -I../../src
LDFLAGS = -L/~/lapack-3.12.1 -llapack

# 目标
all: test run

# 编译
test: P2_Square_M.cpp
	$(CXX) $(CXXFLAGS) P2_Square_M.cpp -o test $(LDFLAGS)

# 运行
run: test
	./test
	python3 P2_Square_M.py

# 清理
clean:
	rm -f test *.txt

.PHONY: all run clean
